<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
	String path = request.getContextPath();
	String loginDateTime = (String)session.getAttribute("EXPERTEVAL_USERLOGINDATETIME");
%>
<head>
<title>专家在线评分室</title>
</head>
<body>
<script type="text/javascript">	

function expertSign(url,pkexpert,pkevalset){        		      		
	$.ajax({
	     type: "GET",
	     url: url,
	     data: 'pkexpert='+pkexpert+'&pkevalset='+pkevalset,
	     success: function(msg){ 
	     	if (!(msg.indexOf("EXPEVAL_SUCCESS") != -1)){
	     		var url = "iframe:<%=path%>/expeval/showmessage?messagecode="+msg;
	     		msgDialog("提示信息", url,"400", "120", "","");
	     	}else{      
		    	jQuery("#"+pkevalset).text("已签"); 
		    	var signtime = msg.substring("EXPEVAL_SUCCESS".length,msg.length); 
		    	jQuery("#"+pkevalset+"_time").text(signtime);   
	     	}  
	     }   
	});  
}   

function enterEval(pkexpert,pkevalset,targetUrl){
	$.ajax({
	     type: "GET",
	     url: '<%=path%>/expeval/entereval',
	     data: 'pkexpert='+pkexpert+'&pkevalset='+pkevalset,
	     success: function(msg){  
	
	     	if (!(msg.indexOf("EXPEVAL_SUCCESS") != -1)){
	     		var url = "iframe:<%=path%>/expeval/showmessage?messagecode="+msg;
	     		msgDialog("提示信息", url,"400", "120", "","");
	     	}else{
		     	document.location.href = targetUrl;
	     	}		     	
	     }   
	});
}
</script>
<div class="redcolor alignLeft mt10">您好，欢迎登录在线评分室，登录时间<%=loginDateTime%></div>
<!-- 当前位置 -->
<div class="path mt10">
	<div class="pleft"></div>
	<div class="pmi">当前位置：在线评分</div>
	<div class="pright"></div>
	<div class="clear"></div>
</div>
<!-- cont -->
<div class="pf mt10">名称</div>
<div class="pflist">
	<ul>
		<li class="pflist_bline tabwa"></li>
		<li class="pflist_tab_a fontB">评分</li>
		<li class="pflist_bline tabwb"></li>
		<li class="pflist_tab_b"><a href="<%=path%>/expeval/evalschedule">查看打分进度</a></li>
		<li class="pflist_bline tabwc"></li>
		<div class="clear"></div>
	</ul>
</div>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableline mt10" >
  <tr >
    <th width="40">序号</th>
   <th>方案编码</th>
    <th>方案名称</th>
    <th>评分室编号</th>
   <th>评分室名称</th>
  <th>评分开始时间</th>
    <th>评分截止时间</th>
  <th>评分标准</th>
    <th>评分论次</th>
    <th>评分状态</th>
	<th>签到</th>
	<th>签到时间</th>
  </tr>
<c:if test="${EXPERTEVAL_EVALLIST != null}">
<c:forEach items="${EXPERTEVAL_EVALLIST}" var="eval">
  <tr onmouseover="this.className='tablelinebg';" onmouseout="this.className='tablelinebgb';">
  	<a href="#" id="${eval.evalIndex}" onclick="enterEval('${eval.pk_expert}','${eval.pk_eval_set}','<%=path%>${eval.evalMethodLink}')">
    <td>${eval.evalIndex}</td>
    <td class="textalign">${eval.billno}</td>
    <td class="textalign">${eval.project_name}</td>
    <td class="textalign">${eval.eval_house_no}</td>
    <td class="textalign">${eval.eval_house_name}</td>
    <td>${eval.eval_begin_time}</td>
    <td>${eval.eval_end_time}</td>
    <td class="textalign">${eval.eval_name}</td>
    <td>${eval.eval_num}</td>
    <td>${eval.expSignStatusShow}</td>
    </a>
	<td><a href="#"><span id="${eval.pk_eval_set}" onclick="expertSign('<%=path%>/expeval/expertsignin','${eval.pk_expert}','${eval.pk_eval_set}')">${eval.signStatusShow}</span></a></td>	
	<a href="#" id="${eval.evalIndex}" onclick="enterEval('${eval.pk_expert}','${eval.pk_eval_set}','<%=path%>${eval.evalMethodLink}')">
	<td><span id="${eval.pk_eval_set}_time">${eval.sign_time}</span></td>
	</a>
  </tr>
  </c:forEach>
  </c:if>
</table>

<!-- 分页 -->
<div class="page">
<ul>
	<li>
	<c:if test="${false == EXPEVAL_PAGEBARINFO.pDownIsUsed}">
	<span class="pt">下一页></span>
	</c:if>
	<c:if test="${true == EXPEVAL_PAGEBARINFO.pDownIsUsed}">
	<a href="<%=path%>/expeval/expevallist?pageno=${EXPEVAL_PAGEBARINFO.pDownIndex}" class="pd">下一页</a>
	</c:if>
	<c:forEach items="${EXPEVAL_PAGEBARINFO.currPageBtnList}" var="pagebtn">
	<c:if test="${pagebtn.pageIndex == EXPEVAL_PAGEBARINFO.currPageIndex}">
	<a href="#" class="cur">${pagebtn.showPageCode}</a>
	</c:if>
	<c:if test="${pagebtn.pageIndex != EXPEVAL_PAGEBARINFO.currPageIndex}">
	<a href="<%=path%>/expeval/expevallist?pageno=${pagebtn.pageIndex}">${pagebtn.showPageCode}</a>
	</c:if>
	</c:forEach>
	<c:if test="${false == EXPEVAL_PAGEBARINFO.pUpIsUsed}">
	<span class="pt"><上一页</span>
	</c:if>
	<c:if test="${true == EXPEVAL_PAGEBARINFO.pUpIsUsed}">
	<a href="<%=path%>/expeval/expevallist?pageno=${EXPEVAL_PAGEBARINFO.pUpIndex}" class="pd">上一页</a>
	</c:if>
	<div class="clear"></div>
	</li>
</ul>
</div>
</body>
</html>
